#ifndef SOCKETSERVIDOR_H
#define SOCKETSERVIDOR_H

#include "socket.h"

namespace red {
namespace sockets {

class SocketServidor : public Socket {

public:

	SocketServidor(unsigned int p_wPort, unsigned int p_wMaxConnections);
	~SocketServidor();

	SocketServidor *accept();

private:

	SocketServidor(int p_Socket);

	bool bind(unsigned int p_wPort);
	bool listen(unsigned int p_wMaxConnections);
};

}
}

#endif
